const serverContext = import.meta.glob('@/views/server/**/*.vue', {eager: true})
const commonContext = import.meta.glob('@/views/common/**/*.vue', {eager: true})

const allPath = [[], [], []]

Object.keys(serverContext).forEach(vue => {
    allPath[0].push(vue.split('/src/')[1].slice(0, -4))
})

Object.keys(commonContext).forEach(vue => {
    allPath[1].push(vue.split('/src/')[1].slice(0, -4))
})

export default allPath
